package ProcessControl;

public class Demo10 {
    public static void main(String[] args) {
    //用while循环实现1+2+...+100
        int i = 0;
        int sum =0;
        while (i<=100){
            sum=sum+i;
            i++;
            System.out.println(sum);


        }




    }
}
